package j03sb;

public class J1 {
    public static void main(String[] args) {
        StringBuilder sb1 = new StringBuilder();
        StringBuilder sb2 = new StringBuilder("abcedfg");

        System.out.println("sb2 = " + sb2);
        System.out.println("sb2.length() = " + sb2.length());

//        sb2.append("x");
//        sb2.insert(1,"_");
//        sb2.delete(1,3);//ae..
//        sb2.replace(0,3,"x");//xe..
        sb2.reverse();

        System.out.println("sb2 = " + sb2);

        System.out.println("======");
        String s1 = "abc";
        StringBuilder sb100 = new StringBuilder(s1);
        String s2 = sb100.toString();
        System.out.println(">>>>>>");
        StringBuffer sf1 = new StringBuffer("xyz");
        System.out.println(sf1);//xyz
        sf1.reverse();
        System.out.println("sf1 = " + sf1);
    }
}
